package cn.yh.ssm.model;

import java.util.Objects;

public class Student {

	private Integer id;
	
	private String name;
	
	private String phone;
	
	private String birthday;
	
	private String sex;
	
	private String email;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}


	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	/**
	 * Objects
	 * 方法可以避免空指针异常
	 */
	
	public static void main(String[] args) {
		System.out.println(Objects.equals(null,"1"));
		//System.out.println(null=="1");
	}
}
